<%--
  Created by IntelliJ IDEA.
  User: cos
  Date: 2022/6/9
  Time: 17:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
    <table>
        <thead>
        <tr>
            <td>员工编号</td>
            <td>员工姓名</td>
            <td>员工性别</td>
            <td>员工工资</td>
            <td>员工密码</td>
            <td>员工出生日期</td>
            <td>员工部门编号</td>
        </tr>
        </thead>
        <tbody>

        <c:forEach items="${empList}" var="e">
            <tr>
                <td>${e.eno}</td>
                <td>${e.ename}</td>
                <td>${e.esex}</td>
                <td>${e.salary}</td>
                <td>${e.pwd}</td>
                <td><fm:formatDate value="${e.bornDate}" pattern="yyyy-MM-dd"/> </td>
                <td>${e.dno}</td>
            </tr>
        </c:forEach>


        </tbody>
    </table>
</body>
</html>
